function printId(id: number | string) {
  console.log(id);
}

printId(123)
printId("111")